<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <title>Document</title>
</head>

<body>
    <script>
        // 这里创建的实例对象duanzi和axios对象的作用几乎是一致的
        const duanzi = axios.create({
            baseURL: 'https://autumnfish.cn',
            timeout: 2000
        });
        duanzi({
            url: '/hot/topic?limit=30',

        }).then(response => {
            console.log(response);
        })
    </script>
</body>

</html>